/* login.css */

.login-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* 登录卡片居中浮起 */
.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  padding: 40px 30px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.6s ease;
}

/* 表单标题 */
.login-title {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

/* 表单内字体 */
.fancy-login-form .el-input__inner {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* 按钮美化 */
.login-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(45deg, #42a5f5, #7e57c2);
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.login-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(66, 165, 245, 0.4);
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.back-button {
  color: #409eff; /* Element Plus info色 */
  font-weight: 500;
  padding: 0;
  font-size: 14px;
}

.back-button:hover {
  color: #66b1ff;
  cursor: pointer;
}

.login-extra-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: #303133; /* 深色更清晰 */
  user-select: none;
  margin-bottom: 10px;
}

.remember-me {
  font-weight: 600;
  color: #303133;
  flex-shrink: 0;   /* 不缩小 */
}

.forgot-password {
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  flex: 1;          /* 占满左侧空间 */
}


/* 晃动动画 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes simple-shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.simple-shake {
  animation: simple-shake 0.3s ease;
}